package com.hghivln.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hghivln.pojo.domain.OrderChargeItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderChargeItemMapper extends BaseMapper<OrderChargeItem> {

    /**
     * 根据收费订单Id查询订单详情
     *
     * @param orderId 收费订单Id
     * @return List<OrderChargeItem>
     */
    List<OrderChargeItem> selectByOrderId(String orderId);

    /**
     * 更新收费详情的状态
     *
     * @param itemIds 收费详情的Id
     */
    int updateByItemIds(@Param("itemIds") List<String> itemIds, @Param("status") String status);

    List<String> selectOrderChargeItems();


}